/***********************************************************************
    filename:   DaterMessageWindow.h
    created:    10/4/2012
    author:     4Ys

    purpose:    Defines class for MessageWindow objects in UI
*************************************************************************/

#ifndef DaterMessageWindow_h_
#define DaterMessageWindow_h_

#include "cegui.h"
#include "DaterBaseWindow.h"
#include "DaterRequestMessage.h"

class MessageWindow : public BaseWindow
{
	/* !
	\brief
		The Events in Day version.
	*/
public:
		/* !
		\brief
			Construct the sample of class MainCalendarDayWindow.

		\param id_name
			- a string to represent the prefix of the window.
			
		\param parent
			- point to parent window.
		*/
	MessageWindow(int index, RequestMessage* requestMessage, CEGUI::Window* parent = 0);
	
		/* !
			Destructor of class MainCalendarDayWindow.
		*/
	~MessageWindow();

		/* !
		\brief
			a virtual function generated from class MainCalendarWindow to show window.
		*/
	virtual void showWindow();
	
		/* !
		\brief
			a virtual function generated from class MainCalendarWindow to hide window.
		*/
	virtual void hideWindow();

		/* !
		\brief
			a virtual function to get the Requst message.
		*/
	RequestMessage* getRequestMessage();

private:
	void subsrciberEvent();

	bool handle_accept(const CEGUI::EventArgs& args);
	bool handle_refuse(const CEGUI::EventArgs& args);

	RequestMessage* _requestMessage;
};

#endif